<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>상영영화</h3>
<hr align="left" width="150">
<center>
<table class="showingInfoList">
	<thead>
	<tr>	 
	   <th class="title">영화 제목</th>
	</tr>
	</thead>
	<tbody>   
	<c:forEach var="showingVO" items="${requestScope.sListVo.showingList}">      
		<tr>
		    <td>
		    	<a href="${initParam.root }admin/showingmovie_content.do?showingNo=${showingVO.movieNo }">${showingVO.title }</a>
		    </td>
		</tr>
	</c:forEach>   
	</tbody>
	<tfoot>
	<tr>
	   <td colspan="4" align="right"><a href="${initParam.root}admin/showingmovie_writeView.do"><img  src="${initParam.root}img/write_btn.jpg" border="0"></a></td>      
	</tr>
	<tr>
	   <td colspan="4">
	   <c:if test="${requestScope.sListVo.pagingBean.previousPageGroup}">
	       <a href="${initParam.root }admin/showingMovieList.do?pageNo=${requestScope.sListVo.pagingBean.startPageOfPageGroup-1}">◀&nbsp;</a>
	   </c:if>
	    &nbsp;&nbsp;
	   <c:forEach var="i" begin="${requestScope.sListVo.pagingBean.startPageOfPageGroup}" end="${requestScope.sListVo.pagingBean.endPageOfPageGroup}">
	       <c:choose>
	          <c:when test="${requestScope.sListVo.pagingBean.nowPage!=i}">
	             <a href="${initParam.root }admin/showingMovieList.do?pageNo=${i}">${i}</a>
	          </c:when>
	          <c:otherwise>
	            ${i}
	         </c:otherwise>
	      </c:choose>
	   </c:forEach>
	   &nbsp;&nbsp;
	   <c:if test="${requestScope.sListVo.pagingBean.nextPageGroup}">
	      <a href="${initParam.root }admin/showingMovieList.do?pageNo=${requestScope.sListVo.pagingBean.endPageOfPageGroup+1}"> ▶ </a>
	   </c:if>   
	   </td>
	</tr>      
	</tfoot>
</table>
</center>